//
//  SAForgetPSWFirstStepViewController.m
//  SunOn
//
//  Created by mc on 2017/5/3.
//  Copyright © 2017年 NeoZhang. All rights reserved.
//  忘记密码界面   第一步骤:获取验证码

#import "SAForgetPSWFirstStepViewController.h"
#import "SAForgetPSWSecondStepViewController.h"//第二步骤

@interface SAForgetPSWFirstStepViewController ()

//返回iamge
@property (weak, nonatomic) IBOutlet UIImageView *backImage;
//输入手机号
@property (weak, nonatomic) IBOutlet UITextField *phoneNumber;
//输入验证码
@property (weak, nonatomic) IBOutlet UITextField *codeNumber;
//获取验证码
@property (weak, nonatomic) IBOutlet UIButton *getCode;//30
//下一步
@property (weak, nonatomic) IBOutlet UIButton *nextStep;//35

@end

@implementation SAForgetPSWFirstStepViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self configureView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - custom method
- (void)backAction {
    DLog(@"返回");
    [self dismissViewControllerAnimated:YES completion:nil];
}

#pragma mark - view method
//获取验证码
- (IBAction)getCodeAction:(UIButton *)sender {
    
}

//下一步
- (IBAction)nextStepAction:(UIButton *)sender {
    SAForgetPSWSecondStepViewController *fistForget = [self.storyboard instantiateViewControllerWithIdentifier:@"SAForgetPSWSecondStepViewController"];
    [self presentViewController:fistForget animated:YES completion:nil];
}
#pragma mark - view layout
- (void)configureView {
    SAViewBorderRadius(self.getCode, 15, 1.0, [UIColor colorWithRed:99/255.0 green:171/255.0 blue:241/255.0 alpha:1.0]);
    SAViewRadius(self.nextStep, 17.5);
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(backAction)];
    self.backImage.userInteractionEnabled = YES;
    [self.backImage addGestureRecognizer:tap];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
